

;(function (window) {
	//封装私有变量
	var $id = function (id) {
		if (typeof id === 'object') {
			return id;
		} else {
			return document.getElementById(id);
		}
	},
		$tag = function (tagName) {
			return document.getElementsByTagName(tagName);
		};

	//定义myFocus对象 不使用var声明，可定义全局对象
	var myFocus = function () {
		//创建实例对象
		return new myFocus.constr();
	};
	window.myFocus = myFocus; //提升为全局对象
	//添加extend方法，用于拓展对象静态属性
	myFocus.extend = function () {
		var dest = this;
		for(var i in arguments){
			for(var item in arguments[i]){
				dest[item] = arguments[i][item] ;
			}
		}
	};

	myFocus.extend({
		constr:function(){
			//定义对象构造函数
			// this.ball = document.getElementById(setting.ballid);
			
			return this;
		}
	});



} (window));